var testConfig = require('../testConfig');
function TestProject() {
  this.init = function () {
    var arr = [];
    arr.push(
      this.step1,
      this.step2,
      this.step3,
      this.step4,
      this.step5,
      this.step6,
      this.step7,
      this.step8,
      this.step9,
      this.step10,
      this.step11,
      this.step12
    );
    testConfig.testFun.runStep(arr);
  };
  var num = 0;
  num = num + 1;
  this.step1 = function () {
    $("#aside-nav").find("div.coords").eq(6).find("a")[0].click();
  };
  this.step2 = function () {
    $("#collapse7").find("li:nth-child(2) .second_lv_li")[0].click();
  };
  this.step3 = function () {
    testConfig.testFun.ai().find('.new_divide')[0].click();
  };
  this.step4 = function () {
    testConfig.testFun.bi().find("#realName").val("姬自动化测试");
  };
  this.step5 = function () {
    testConfig.testFun.bi().find('#account').val("jzdhcs" + num);
  };
  this.step6 = function () {
    testConfig.testFun.bi().find('#password').val("123456");
  };
  this.step7 = function () {
    testConfig.testFun.bi().find('.groupes label:first').click();
  };
  this.step8 = function () {
    testConfig.testFun.bi().find(".radioGroup label:last").click();
  };
  this.step9 = function () {
    testConfig.testFun.bi().find("#operatorPassword").val("123456");
  };
  this.step10 = function () {
    testConfig.testFun.bi().find("#saveBtn").click();
  };
  this.step11 = function () {
    testConfig.testFun.ai().find("#accountName").val("jzdhcs" + num);
  };
  this.step12 = function () {
    testConfig.testFun.ai().find(".search_btn").click();
  };
}
function testStart() {
  var test = new TestProject();
  test.init();
}
exports.start = testStart;
